import request, { post, get } from "@/utils/request";

//-------------------------------登陆---------------------------------------
// 登陆
export const login = (params) => post("/login",params)
//登出
export const logout = () => get("/login/logout")

//-------------------------------用户---------------------------------------
// 查询用户
export const getUserPage = (params) => post("/user/getUserPage",params)
//根据id查询用户
export const getUserById = (params) => get("/user/getUserById",params)
//保存用户
export const saveUser = (params) => post("/user/saveUser",params)
//更新用户
export const editUser = (params) => post("/user/editUser",params)
//删除用户
export const removeUser = (params) => get("/user/removeUser",params)
//重置密码
export const resetPassword = (params) => post("/user/resetPassword",params)
//获取登陆用户信息
export const getUser = () => get("/user/getUserInfo")
//修改个人信息
export const setUserInfo = (params) => post("/user/setUserInfo",params)
//修改个人头像
export const setUserAvatar = (params) => get("/user/setUserAvatar",params)
//查询用户列表
export const getUserListByUserType = (params) => get("/user/getUserListByUserType",params)

//-------------------------------收费类型---------------------------------------
//查询收费类型
export const getChargeTypePage = (params) => post("/type/getChargeTypePage",params)
//根据id查询收费类型
export const getChargeTypeById = (params) => get("/type/getChargeTypeById",params)
//保存收费类型
export const saveChargeType = (params) => post("/type/saveChargeType",params)
//更新收费类型
export const editChargeType = (params) => post("/type/editChargeType",params)
//删除ChargeType
export const removeChargeType = (params) => get("/type/removeChargeType",params)
//查询收费类型列表
export const getChargeTypeList = (params) => get("/type/getChargeTypeList",params)

//-------------------------------收费---------------------------------------
//查询收费
export const getChargeListPage = (params) => post("/list/getChargeListPage",params)
//根据id查询收费
export const getChargeListById = (params) => get("/list/getChargeListById",params)
//保存收费
export const saveChargeList = (params) => post("/list/saveChargeList",params)
//更新收费
export const editChargeList = (params) => post("/list/editChargeList",params)
//删除ChargeList
export const removeChargeList = (params) => get("/list/removeChargeList",params)

//-------------------------------欠费记录---------------------------------------
//查询欠费记录
export const getNegativeListPage = (params) => post("/list/getNegativeListPage",params)
//根据id查询欠费记录
export const getNegativeListById = (params) => get("/list/getNegativeListById",params)
//保存欠费记录
export const saveNegativeList = (params) => post("/list/saveNegativeList",params)
//更新欠费记录
export const editNegativeList = (params) => post("/list/editNegativeList",params)
//删除NegativeList
export const removeNegativeList = (params) => get("/list/removeNegativeList",params)

//-------------------------------车位---------------------------------------
//查询车位
export const getSpaceListPage = (params) => post("/list/getSpaceListPage",params)
//根据id查询车位
export const getSpaceListById = (params) => get("/list/getSpaceListById",params)
//保存车位
export const saveSpaceList = (params) => post("/list/saveSpaceList",params)
//更新车位
export const editSpaceList = (params) => post("/list/editSpaceList",params)
//删除SpaceList
export const removeSpaceList = (params) => get("/list/removeSpaceList",params)

//-------------------------------房屋---------------------------------------
//查询房屋
export const getHousesListPage = (params) => post("/list/getHousesListPage",params)
//根据id查询房屋
export const getHousesListById = (params) => get("/list/getHousesListById",params)
//保存房屋
export const saveHousesList = (params) => post("/list/saveHousesList",params)
//更新房屋
export const editHousesList = (params) => post("/list/editHousesList",params)
//删除HousesList
export const removeHousesList = (params) => get("/list/removeHousesList",params)

//-------------------------------环境---------------------------------------
//查询环境
export const getEnvironmentListPage = (params) => post("/list/getEnvironmentListPage",params)
//根据id查询环境
export const getEnvironmentListById = (params) => get("/list/getEnvironmentListById",params)
//保存环境
export const saveEnvironmentList = (params) => post("/list/saveEnvironmentList",params)
//更新环境
export const editEnvironmentList = (params) => post("/list/editEnvironmentList",params)
//删除EnvironmentList
export const removeEnvironmentList = (params) => get("/list/removeEnvironmentList",params)

//-------------------------------报修---------------------------------------
//查询报修
export const getRepairListPage = (params) => post("/list/getRepairListPage",params)
//根据id查询报修
export const getRepairListById = (params) => get("/list/getRepairListById",params)
//保存报修
export const saveRepairList = (params) => post("/list/saveRepairList",params)
//更新报修
export const editRepairList = (params) => post("/list/editRepairList",params)
//删除RepairList
export const removeRepairList = (params) => get("/list/removeRepairList",params)

//-------------------------------投诉---------------------------------------
//查询投诉
export const getComplainListPage = (params) => post("/list/getComplainListPage",params)
//根据id查询投诉
export const getComplainListById = (params) => get("/list/getComplainListById",params)
//保存投诉
export const saveComplainList = (params) => post("/list/saveComplainList",params)
//更新投诉
export const editComplainList = (params) => post("/list/editComplainList",params)
//删除ComplainList
export const removeComplainList = (params) => get("/list/removeComplainList",params)

//-------------------------------纠纷---------------------------------------
//查询纠纷
export const getDisputeListPage = (params) => post("/list/getDisputeListPage",params)
//根据id查询纠纷
export const getDisputeListById = (params) => get("/list/getDisputeListById",params)
//保存纠纷
export const saveDisputeList = (params) => post("/list/saveDisputeList",params)
//更新纠纷
export const editDisputeList = (params) => post("/list/editDisputeList",params)
//删除DisputeList
export const removeDisputeList = (params) => get("/list/removeDisputeList",params)

//-------------------------------物品---------------------------------------
//查询物品
export const getGoodsListPage = (params) => post("/list/getGoodsListPage",params)
//根据id查询物品
export const getGoodsListById = (params) => get("/list/getGoodsListById",params)
//保存物品
export const saveGoodsList = (params) => post("/list/saveGoodsList",params)
//更新物品
export const editGoodsList = (params) => post("/list/editGoodsList",params)
//删除GoodsList
export const removeGoodsList = (params) => get("/list/removeGoodsList",params)

//-------------------------------职位---------------------------------------
//查询职位
export const getPostListPage = (params) => post("/list/getPostListPage",params)
//根据id查询职位
export const getPostListById = (params) => get("/list/getPostListById",params)
//保存职位
export const savePostList = (params) => post("/list/savePostList",params)
//更新职位
export const editPostList = (params) => post("/list/editPostList",params)
//删除PostList
export const removePostList = (params) => get("/list/removePostList",params)
//获取职位列表
export const getPostList = (params) => get("/list/getPostList",params)

//-------------------------------区域---------------------------------------
//查询区域
export const getRegionListPage = (params) => post("/list/getRegionListPage",params)
//根据id查询区域
export const getRegionListById = (params) => get("/list/getRegionListById",params)
//保存区域
export const saveRegionList = (params) => post("/list/saveRegionList",params)
//更新区域
export const editRegionList = (params) => post("/list/editRegionList",params)
//删除RegionList
export const removeRegionList = (params) => get("/list/removeRegionList",params)
//获取区域列表
export const getRegionList = (params) => get("/list/getRegionList",params)

//-------------------------------消息---------------------------------------
//查询消息
export const getMessageListPage = (params) => post("/list/getMessageListPage",params)
//根据id查询消息
export const getMessageListById = (params) => get("/list/getMessageListById",params)
//保存消息
export const saveMessageList = (params) => post("/list/saveMessageList",params)
//更新消息
export const editMessageList = (params) => post("/list/editMessageList",params)
//删除MessageList
export const removeMessageList = (params) => get("/list/removeMessageList",params)
